using UnityEngine;

public class UIF_Camera_Script : MonoBehaviour
{
    [Header("摄像机跟随的目标")]
    public Transform target;

    private Vector3 direction;
    void Start()
    {
        direction = target.position - transform.position;
    }

    void Update()
    {
        transform.position = target.position - direction;
    }
}
